package com.neulogistics.contrib.procuredcenter.api.application.query;

import com.neulogistics.contrib.procuredcenter.api.application.validator.annotation.InList;
import com.neulogistics.contrib.procuredcenter.domain.model.valueobject.VendorInfo;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Date;

@Data
public class GoodsQuery implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 当前页号
     */
    @Positive(message = "当前页数非法！")
    private long pageNum = 1;

    /**
     * 页面大小
     */
    @Positive
    @Max(value = 20, message = "请求数据过多！")
    private long pageSize = 10;


    /**
     * 商品名
     */
    @Size(max = 20)
    public String goodsName;

    /**
     * 所属二级分类id
     */
    @Positive
    public Integer setId;

}
